package com.byjh.app.service.impl;

import java.util.List;

import com.byjh.app.domain.App;
import com.byjh.app.mapper.AppMapper;
import com.byjh.app.service.IAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 应用Service业务层处理
 * 
 * @author dhq
 * @date 2025-01-10
 */
@Service
public class AppServiceImpl implements IAppService
{
    @Autowired
    private AppMapper appMapper;

    /**
     * 查询应用
     * 
     * @param id 应用主键
     * @return 应用
     */
    @Override
    public App selectAppById(Long id)
    {
        return appMapper.selectAppById(id);
    }

    /**
     * 查询应用列表
     * 
     * @param app 应用
     * @return 应用
     */
    @Override
    public List<App> selectAppList(App app)
    {
        return appMapper.selectAppList(app);
    }

    /**
     * 新增应用
     * 
     * @param app 应用
     * @return 结果
     */
    @Override
    public int insertApp(App app)
    {
        return appMapper.insertApp(app);
    }

    /**
     * 修改应用
     * 
     * @param app 应用
     * @return 结果
     */
    @Override
    public int updateApp(App app)
    {
        return appMapper.updateApp(app);
    }

    /**
     * 删除应用信息
     * 
     * @param id 应用主键
     * @return 结果
     */
    @Override
    public int deleteAppById(Long id)
    {
        return appMapper.deleteAppById(id);
    }
}
